package com.zhiyou100.loans.service;

import javax.servlet.http.HttpServletRequest;

import com.zhiyou100.loans.model.User;

import net.sf.json.JSONObject;

public interface UserService {
	public JSONObject add(User user);

	public JSONObject login(User user,HttpServletRequest request);

	public JSONObject logout(HttpServletRequest request);

	public JSONObject balanceSelect(String userid);

	public JSONObject balanceInsert(String username);

	public JSONObject updateBalance(String money,String userid);

	public JSONObject minusBalance(String money, String userid);
}
